Relative Time - Calculate a point in time relative to a given base point in time

This action starts from a given base point in time (or current time), changes it by any given number of seconds, and calculates the resulting point in time.

Typical usage example: Calculate the time 10 minutes from now (e.g. to calculate the expiry time of a lock).

Triggers

The action's template has 2 triggers:

<Base Time> (non-repetitive trigger [not required]): The base point in time relative to which the required point in time is calculated. If not specified, the current time according to the server's clock ("now") is used as base point in time.

<Seconds> (non-repetitive numeric trigger [required]): Number of seconds to add to <Base Time> (negative if the required point in time is earlier than <Base Time>).

Exit [required]

<Time> (non-repetitive exit [required]): The calculated point in time (can be earlier or later than <Base Time>).

Notice: If <Seconds> is 0, this action returns the current time (same as Now).

Usage Examples

Common/Templates/Modules/Locking/Lock/Lock (need to complete)